package rioharkka;

public class MyRunnable implements Runnable {

    private int firstRow;
    private int lastRow;

    public MyRunnable(int firstRow, int lastRow) {
        this.firstRow = firstRow;
        this.lastRow = lastRow;
    }

    public void run() {

        for (int i = firstRow; i < lastRow; i++) {
            for (int j = 0; j < Main.size; j++) {
                float temp = 0;
                for (int k = 0; k < Main.size; k++) {
                    temp += Main.multiply1[i][k] * Main.multiply2[k][j];
                }
                Main.result[i][j] = temp;
            }
        }

        Main.ready--;
    }

}
